#在技能使用时
$function util:run_command {command:"$(on_use)"}

execute if items entity @s weapon.offhand bow run return run function dab:system/skill/item_break_bow with entity @s Inventory[{Slot:-106b}].components."minecraft:custom_data".run
function dab:system/skill/item_break